home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / tvtool17.zip / GENCOLL.H < prev    next >
Text File  |  1993-01-14  |  890b  |  27 lines

  1. /*  Copyright (C) 1993   Marc Stern  (internet: stern@mble.philips.be)  */
  2.  
  3. #if defined(Uses_TGenCollection) && !defined(__TGenCollection )
  4. #define __TGenCollection
  5.  
  6.  
  7. class TGenCollection : public TStringCollection
  8. {
  9. public:
  10.         TGenCollection( ccIndex = 0, ccIndex = 0 );
  11.         virtual char *getData( ccIndex index ) { return getText(index); }
  12.         virtual char *getText( ccIndex );
  13.         virtual ccIndex indexOf( char *item );
  14.         virtual ccIndex indexOfText( char *item );
  15.         virtual void *firstThat( ccTestFunc Test, void *arg );
  16.         virtual void *firstTextThat( ccTestFunc Test, void *arg );
  17.         virtual int getCount();
  18.         virtual int getTextLength();
  19.         virtual int compare( void *, void * );
  20.  
  21. private:
  22.     virtual void *readItem( ipstream& ) { return 0; }
  23.     virtual void writeItem( void *, opstream& ) {}
  24. };
  25.  
  26. #endif
  27.